package com.xiaoxin.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author xiaoxiaode
 * @date 2021-09-01-14:02
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(collection = "recommend_user")
public class RecommendUser implements Serializable {
    //主键id
    private ObjectId id;
    //推荐的用户id
    private Long userId;
    //用户id
    private Long toUserId;
    //推荐得分
    private Double score=0d;
    //日期
    private String date;

}
